package com.home.Entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="HOADON")
public class HoaDon {
	
	@Id
	@Column(name="HDO_MASO")
	private long maSo;
	@Column(name="HDO_SOTIEN")
	private float soTien;
	@Column(name="HDO_DATHANHTOAN")
	private boolean daThanhToan;
	@Column(name="HDO_GHICHU")
	private String ghiChu;
	@Column(name="HDO_NGAYLAP")
	private Date ngayLap;
	@ManyToOne
	@JoinColumn(name="HDO_BAN")
	private Ban ban;
	public long getMaSo() {
		return maSo;
	}
	public void setMaSo(long maSo) {
		this.maSo = maSo;
	}
	public float getSoTien() {
		return soTien;
	}
	public void setSoTien(float soTien) {
		this.soTien = soTien;
	}
	public boolean isDaThanhToan() {
		return daThanhToan;
	}
	public void setDaThanhToan(boolean daThanhToan) {
		this.daThanhToan = daThanhToan;
	}
	public String getGhiChu() {
		return ghiChu;
	}
	public void setGhiChu(String ghiChu) {
		this.ghiChu = ghiChu;
	}
	public Date getNgayLap() {
		return ngayLap;
	}
	public void setNgayLap(Date ngayLap) {
		this.ngayLap = ngayLap;
	}
	public Ban getBan() {
		return ban;
	}
	public void setBan(Ban ban) {
		this.ban = ban;
	}
	
	
}
